function overlap = bboxOverlap(bbox1, bbox2)
    % 获取边界框的坐标
    x1 = bbox1(1);
    y1 = bbox1(2);
    w1 = bbox1(3);
    h1 = bbox1(4);
    
    x2 = bbox2(1);
    y2 = bbox2(2);
    w2 = bbox2(3);
    h2 = bbox2(4);
    
    % 计算边界框的四个边界
    left1 = x1;
    right1 = x1 + w1;
    top1 = y1;
    bottom1 = y1 + h1;
    
    left2 = x2;
    right2 = x2 + w2;
    top2 = y2;
    bottom2 = y2 + h2;
    
    % 检查边界框是否相交
    overlap = ~(right1 < left2 || left1 > right2 || bottom1 < top2 || top1 > bottom2);
end